<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Agreements.AgreementsSummary" CodeFile="AgreementSummary.aspx.cs" %>

<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Agreements Summary</title>
	<link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<form id="AgreementsSummaryForm" method="post" runat="server">
		<table class="Container">
			<tr>
				<td>
					<table class="Header">
						<tr>
							<td>
								<cc1:Header ID="header" runat="server" OnNavigate="OnHeaderNavigate" />
							</td>
						</tr>
						<tr>
							<td>
								<cc1:AgreementsSubNavigation ID="agreementsSubNavigation" runat="server" EnableOverviewNavigation="true"
									OnNavigate="OnSubNavigate" />
							</td>
						</tr>
						<tr>
							<td>
								<cc2:BreadCrumb ID="breadCrumb" runat="server" OnNavigate="OnNavigate" />
							</td>
						</tr>
					</table>
					<table class="SearchContainer" cellspacing="10">
						<tr>
							<td>
								<cc2:ExpandingPanel ID="expandingPanel" runat="server" ExpansionToggler="expansionToggler">
									<StaticTemplate>
										<table class="Search">
											<tr>
												<td>
													<cc1:CommonSearch ID="commonSearch" runat="server" ExtendedSearchControl="agreementSearch"
														Field1Enabled="true" Field1ID="fundID" Field1Prompt="Fund #:" Field1Visible="True"
														Field2AutoCompleteServiceMethod="GetPIs" Field2ID="piName" Field2Prompt="PI Name :"
														Field2Style="" Module="Agreements" OnClearSelection="OnClearSelection" OnSearch="OnSearch"
														PIPickerVisible="false" />
												</td>
											</tr>
											<tr>
												<td class="PanelSeparator">
												</td>
											</tr>
											<tr>
												<td>
													<cc2:ExpansionToggler ID="expansionToggler" runat="Server" CollapsedLinkCaption="Advanced Search Options"
														ExpandedLinkCaption="Advanced Search Options" CollapsedImage="~/Images/Arrow_RT.gif"
														ExpandedImage="~/Images/Arrow_DN.gif" />
												</td>
											</tr>
										</table>
									</StaticTemplate>
									<DynamicTemplate>
										<table class="Search">
											<tr>
												<td>
													<cc1:AgreementSearch ID="agreementSearch" runat="server" IsSearchableByBalance="False"
														ShowDefaultAgreement="True" />
												</td>
											</tr>
										</table>
									</DynamicTemplate>
								</cc2:ExpandingPanel>
							</td>
						</tr>
						<tr>
							<td>
								<cc1:SearchCriteriaDisplay ID="searchCriteriaDisplay" runat="server" />
							</td>
						</tr>
					</table>
					<table id="dynamicTable" class="Invisible" cellspacing="10">
						<tr>
							<td>
								<cc2:ActivityIndicator ID="activityIndicator" runat="server" ContainerID="dynamicTable" />
							</td>
						</tr>
						<tr>
							<td>
								<cc2:Annunciator ID="annunciator" runat="server" ContainerID="dynamicTable" />
							</td>
						</tr>
					</table>
					<table class="PlaceBar">
						<tr>
							<td align="left" class="PageName">
								Agreement Summary</td>
							<td align="center">
								<cc1:RefreshDates ID="refreshDates" runat="server" Visible="False" />
							</td>
							<td align="right">
								<cc1:InsightDownloadBar ID="downloadBar" runat="server" OnDownloadToExcel="OnDownloadToExcel"
									OnDownloadToPDF="OnDownloadToPDF" OnFailedAction="OnDownloadFailed" SQLReportName="Agreement_Summary"
									useRootHost="true" />
							</td>
							<td>
								&nbsp;</td>
						</tr>
					</table>
					<table width="100%" cellspacing="0">
						<tr>
							<td>
								<cc2:Pager ID="pagerAboveDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
									OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
							</td>
						</tr>
						<tr>
							<td>
								<asp:DataGrid ID="dataGrid" runat="server" AllowCustomPaging="True" AllowPaging="True"
									AllowSorting="True" AutoGenerateColumns="False" CssClass="DataGrid" OnItemCommand="OnItemCommand"
									OnItemCreated="OnItemCreated" OnItemDataBound="OnItemDataBound" OnSortCommand="OnSort"
									Width="100%">
									<AlternatingItemStyle CssClass="DataGridAlternatingItem" />
									<ItemStyle CssClass="DataGridItem" />
									<HeaderStyle CssClass="DataGridHeader" />
									<PagerStyle Visible="False" />
									<Columns>
										<asp:BoundColumn DataField="AgreementID" SortExpression="AgreementID" ReadOnly="True"
											HeaderText="Agreement ID" Visible="False"></asp:BoundColumn>
										<asp:BoundColumn DataField="FundNumber" SortExpression="FundNumber" ReadOnly="True"
											HeaderText="Fund #"></asp:BoundColumn>
										<asp:BoundColumn DataField="PIName" ItemStyle-Wrap="False" SortExpression="PIName"
											ReadOnly="True" HeaderText="PI Name"></asp:BoundColumn>
										<asp:BoundColumn DataField="SponsorName" SortExpression="SponsorName" ReadOnly="True"
											HeaderText="Sponsor"></asp:BoundColumn>
										<asp:ButtonColumn ButtonType="LinkButton" DataTextField="ShortTitle" SortExpression="ShortTitle"
											CommandName="SelectAgreement" HeaderText="Project Title"></asp:ButtonColumn>
										<asp:BoundColumn DataField="Title" SortExpression="Title" ReadOnly="True" HeaderText="Full Title"
											Visible="False"></asp:BoundColumn>
										<asp:BoundColumn DataField="ProjectStartDate" SortExpression="ProjectStartDate" ReadOnly="True"
											HeaderText="Project Start"></asp:BoundColumn>
										<asp:BoundColumn DataField="ProjectEndDate" SortExpression="ProjectEndDate" ReadOnly="True"
											HeaderText="Project End"></asp:BoundColumn>
										<asp:BoundColumn DataField="BudgetStartDate" SortExpression="BudgetStartDate" ReadOnly="True"
											HeaderText="Budget Start"></asp:BoundColumn>
										<asp:BoundColumn DataField="BudgetEndDate" SortExpression="BudgetEndDate" ReadOnly="True"
											HeaderText="Budget End"></asp:BoundColumn>
										<asp:BoundColumn DataField="AgreementType" SortExpression="AgreementType" ReadOnly="True"
											HeaderText="Type"></asp:BoundColumn>
										<asp:BoundColumn DataField="ActivityType" SortExpression="ActivityType" ReadOnly="True"
											HeaderText="Activity"></asp:BoundColumn>
										<asp:BoundColumn DataField="StatusType" SortExpression="StatusType" ReadOnly="True"
											HeaderText="Status"></asp:BoundColumn>
										<asp:BoundColumn DataField="AccessLevel" SortExpression="AccessLevel" ReadOnly="True"
											HeaderText="Access Level" Visible="False" />
									</Columns>
								</asp:DataGrid></td>
						</tr>
						<tr>
							<td>
								<cc2:Pager ID="pagerBelowDatagrid" runat="server" OnFirstPage="OnFirstPage" OnLastPage="OnLastPage"
									OnNextPage="OnNextPage" OnPreviousPage="OnPreviousPage" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
